#include <syscallhandle.h>


SyscallHandler::SyscallHandler(InterruptManager* interruptManager, uint8_t interruptNumber)
:InterruptHandler(interruptNumber + interruptManager->HardwareInterruptOffset(), interruptManager)
{
}

SyscallHandler::~SyscallHandler()
{


}


uint32_t SyscallHandler::HandleInterrupt(uint32_t esp){

    CPUState* cpu = (CPUState*)esp;


    switch (cpu->eax)
    {
    case 4:
        printf("syscall number:");
        printf32Hex(cpu->eax);
        printf("\n");
        printf((char*)cpu->ebx);
        break;
    
    default:
        break;
    }


    return esp;
}